﻿using mojoPortal.Business.WebHelpers;
using mojoPortal.Web;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace blackhouse.WebNemo.Translator {

    public class NemoDefault : blackhouse.Translator.Web.Default {

        protected override void OnLoad(EventArgs e) {

            bool havePriv =
                WebUser.IsAdminOrContentAdmin
                && WebUser.IsInRole("translator");

            if (!havePriv)
                SiteUtils.RedirectToLoginPage(base.Page, "/Translator/Default.aspx");

            base.OnLoad(e);
        }

    }
}
